<div class="modal-dialog" role="document">
    <div class="modal-content" tabindex="-1">
        <div class="modal-header">
            <button type="button" class="close" data-bind="click: cancel" aria-hidden="true">
                <i class="icon-cancel"></i>
            </button>
            <h4 class="modal-title" data-bind="visible: totalDocCount > 0">Delete the documents matching your query?</h4>
            <h4 class="modal-title" data-bind="visible: totalDocCount === 0">No documents to delete</h4>
        </div>
        <div class="modal-body">
            <div data-bind="visible: totalDocCount > 0" class="margin-top word-break">
                <p>
                    <span>You're deleting </span>
                    <strong data-bind="text: totalDocCount.toLocaleString() + (hasMore ? '+' : '')"></strong>
                    <span data-bind="visible: totalDocCount > 1, text: ' documents '"></span>
                    <span data-bind="visible: totalDocCount == 1, text: ' document '"></span>
                    <span>from <strong data-bind="text: indexName"></strong></span>
                </p>
                <p>These documents match the following query:</p>
            </div>
            <div data-bind="visible: totalDocCount === 0" class="margin-top">
                <p>There are no documents matching your query:</p>
            </div>
            <pre data-bind="text: queryText"></pre>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-bind="click: cancel">Cancel</button>
            <button type="button" class="btn btn-danger" data-bind="click: deleteDocs, visible: totalDocCount > 0">Delete</button>
        </div>
    </div>
</div>
